#ifndef BLITQUEUE_H_INCLUDED
#define BLITQUEUE_H_INCLUDED

#include <list>

namespace Oribi
{
    class GraphicContext;
    class BlitQueue
    {
    public:
        BlitQueue(SDL_Point go = {0, 0}): globalOffset(go){}

        void blitAll(SDL_Surface *surf);

        Sprite *queueSprite(const Sprite&);
        void clear();

        friend class GraphicContext;
    private:
        SDL_Point globalOffset;
        std::list<Sprite> toBlit;
    };
}

#endif // BLITQUEUE_H_INCLUDED
